package com.itheima.dao;

import com.itheima.domain.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptDao {
    /*
    * 查询*/
    public List<Dept> selectAllDept();

    /*查询单个
    * */
    public Dept selectByDept(int deptno);

    /*
    *添加
    * */
    public int insertDept(Dept dept);
    /*
    * 删除
    * */
    public int deleteDept(int deptno);
    /*
    *更新
    * */
    public int updateDept(Dept dept);

    List<Dept> selectByNameOrAge(@Param("deptno")int deptno,@Param("dname")String dname);

    List<Dept> selectCondition(Dept dept);

    /*List<Dept> selectByIds(List list);*/
}
